#ifndef PUZZLECONTENT_H
#define PUZZLECONTENT_H
#include <time.h>  

#include <MultiWidgets\Widget.hpp>
#include <MultiWidgets\TextWidget.hpp>
#include "AbstractContent.h"

class PuzzleContent : public AbstractContent{

public:
	PuzzleContent();
	virtual void init();
protected:
	virtual void nextContent();
	virtual void eventProcess(const QByteArray & messageId, Radiant::BinaryData & data) OVERRIDE;
	void puzzleDone();
	virtual void update(const MultiWidgets::FrameInfo &frameInfo);

	Radiant::IntrusivePtr<MultiWidgets::TextWidget> timerWidget;
	bool cleared;
	bool done;
	bool gameOver;
	time_t timer;
	time_t finishTime;
};


#endif